package com.hsp.homework.homework5;

public class Homework05 {
    public static void main(String[] args) {
        Worker worker=new Worker("jack",6000);
        worker.setSalMonth(10);
        worker.printSal();
        Peasant peasant=new Peasant("smith",20000);
        peasant.printSal();

        Teacher teacher = new Teacher("lus", 8000);
        teacher.setClassDay(200);
        teacher.setClassSal(300);
        teacher.printSal();

        Scientist scientist = new Scientist("gaosilin", 200000);
        scientist.setBonus(30000);
        scientist.printSal();

    }
}
